﻿package cn.gbase.jiangsu.data.transfer.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
 * 运营商用户表.
 * 
 */
@Table("system_users")
public class SystemUser extends BaseDto {

	/**
	 * ID.
	 */
	@Column
	@Id
	private int id;

	/**
	 * 用户名.
	 */
	@Column
	@Validations(required = true, account = true, strLen = { 1, 16 }, errorMsg = "用户名应为1-16个字符，可以使用英文字符和数字。")
	private String username;

	/**
	 * 密码.
	 */
	@Column
	@Validations(required = true, account = true, strLen = { 1, 16 }, errorMsg = "密码应为1-16个字符，可以使用英文字符和数字。")
	private String pw;

	/**
	 * 备注
	 */
	@Column
	@Validations(required = false, strLen = { 0, 255 }, errorMsg = "备注应为0-255个字符。")
	private String remark;

	/**
	 * 创建时间.
	 */
	@Column
	private Date addtime;

	/**
	 * 创建时间.
	 */
	@Column("create_user")
	private String createUser;
	
	/**
	 * 新密码.
	 */
	private String newPassword = null;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPw() {
		return pw;
	}

	public void setPw(String pw) {
		this.pw = pw;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}


	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}
	
	

}
